Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustpkg: Search for crates in the current directory #9736

Merged
merged 1 commit into from
Oct 21, 2013

Conversation

catamorphism
Copy link
Contributor

r? @cmr As per #8520, find crates in the current working directory even
if it's not a workspace.

Closes #8520

@catamorphism
Copy link
Contributor Author

Current status: the test is failing on linux2, but if I ssh into rust-linux1 and run make check with this branch, all tests pass. Something must be different on linux2. The test that fails is a weird test that should be rewritten anyway (it's one of the two that do probably-non-threadsafe things), but I still want to understand why it fails. I'm pinging Graydon to try to find out whether I can ssh into linux2.

As per rust-lang#8520, find crates in the current working directory even
if it's not a workspace.

Closes rust-lang#8520
bors added a commit that referenced this pull request Oct 21, 2013
r? @cmr As per #8520, find crates in the current working directory even
if it's not a workspace.

Closes #8520
@bors bors closed this Oct 21, 2013
@bors bors merged commit 5412794 into rust-lang:master Oct 21, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Oct 6, 2023
new lint: `iter_without_into_iter`

Closes rust-lang#9736

A new lint that looks for `iter` (and `iter_mut`) method implementations without the type implementing `IntoIterator` for `&Type`.
Imo this seems rather pedantic, so I went with that, but I can be convinced to change it to `style` like the linked issue asked for.
Writing a machine applicable suggestion seems a bit tricky and tedious, so for now this relies on the user adding remaining lifetimes.

changelog: new lint: `iter_without_into_iter`
flip1995 pushed a commit to flip1995/rust that referenced this pull request Oct 6, 2023
new lint: `into_iter_without_iter`

Closes rust-lang#9736 (part 2)

This implements the other lint that my earlier PR missed: given an `IntoIterator for &Type` impl, check that there exists an inherent `fn iter(&self)` method.

changelog: new lint: `into_iter_without_iter`

r? `@Jarcho` since you reviewed rust-lang#11527 I figured it makes sense for you to review this as well?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let rustpkg find sources in the current working directory even if it's not a workspace
2 participants